Depicter\Database\Repository\DocumentRepository B

Total Complexity 95
Dependencies 8
Dependents 3
Total lines 711
Lines of code 321
Logical lines of code 170
Comment lines 279
Methods 36
Properties 1

Methods 36

Method Rating Maintainability Complexity Lines of code
duplicate()
A
49 9 30
saveEditorData()
A
48 8 33
revert()
A
51 8 24
getList()
S
53 7 19
makeSlug()
S
59 5 15
findOne()
S
58 5 15
geContent()
S
60 5 13
update()
S
63 4 10
getLastPublishedAt()
S
67 3 7
changeSlug()
S
65 3 9
isNotPublished()
S
66 3 8
find()
S
67 3 7
checkSlug()
S
63 2 11
checkRevisionsLimit()
S
69 2 6
getPreviewImageUrl()
S
70 2 6
isPublished()
S
68 2 7
addRevision()
S
65 2 9
delete()
S
71 2 6
getCurrentUserId()
S
79 2 3
rename()
S
71 2 6
defaultFields()
S
60 1 14
getPreviewImagePath()
S
79 1 3
savePreviewImage()
S
72 1 6
__construct()
S
80 1 3
getLastDocument()
S
79 1 3
getRecentRevision()
S
73 1 4
getMergedFields()
S
79 1 3
draftFields()
S
69 1 7
document()
S
81 1 3
findOrCreate()
S
75 1 4
findById()
S
80 1 3
create()
S
63 1 10
save()
S
76 1 4
all()
S
81 1 3
getParsedEditorContent()
S
75 1 4
getPreviewRelativeImagePath()
S
80 1 3